home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <errno.h>
-
- #include <proto/dos.h>
-
- /************************************************************************/
- /* */
- /* Note: AmigaOS V37 Flush() won't work properly if you haven't done */
- /* any buffered I/O on the stream yet. So, don't call fflush() if this */
- /* is the case. */
- /* */
- /************************************************************************/
-
- int fflush(FILE *Stream)
-
- {
- int Result;
-
- Result=Flush(fileno(Stream)) ? 0 : EOF;
- if (Result)
- {
- errno=IoErr();
- }
- return Result;
- }
-